package com.feign;

import com.pojo.User;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @Author : FMH
 * @Date : 2020/2/24 15:13
 * @Description : 回退处理类需要实现需要处理的接口(需要作为容器中的组件)
 * @Modify By : 86159
 * @Version :
 */
//@Component
public class UserFeignServiceFallBack implements UserFeignService{
    @Override
    public User get(Long id) {
        return new User(id,"请求异常,请稍后再试!","",0,new BigDecimal(0.00));
    }
}
